package cn.edu.scau.cmi.duzefeng.compositeprog.model.consistent;

import java.util.LinkedList;
import java.util.List;

public class Organization extends Member {
	private List<Member> children;
	private String name;

	public Organization(String name) {
		children = new LinkedList<>();
		this.name = name;
	}

	@Override
	public List<Member> getChildren() {
		return children;
	}
	@Override
	public void addChild(Member child) {
		children.add(child);
	}
	@Override
	public void removeChild(Member child) {
		children.remove(child);
	}

	@Override
	public String getName() {
		return name;
	}
}
